//
//  BlockModel.m
//  ReviewDemo
//
//  Created by 龙 on 2018/3/24.
//  Copyright © 2018年 long. All rights reserved.
//

#import "BlockModel.h"
#import <objc/runtime.h>

@interface BlockModel()

{
    int _globeAge;
}

@end

@implementation BlockModel
static NSString *name = @"张三";

- (void)testMethod
{
    _globeAge = 20;
    static NSString *food = @"香蕉";
    __block float height = 9.0;
    void (^loginLogoutblock)(void) = ^{
        height = 99;
        _globeAge = 12;
        name = @"李四";
        food = @"苹果";
        NSLog(@"block内部：_globeAge:%d **** height : %f ------ name : %@ === food : %@",_globeAge,height,name,food);
    };
    
    NSLog(@"block外面：_globeAge:%d **** height : %f ------ name : %@ === food : %@",_globeAge,height,name,food);
    
    loginLogoutblock();
    
}


@end
